/**
 * 
 */
package aufgabe_06;
import java.util.Scanner;
import java.util.Vector;

/**
 * @author Viktor
 * @version 1.0
 *
 */



public class ScannerTest {

	/**
	 * @param Vector<Float> a vector with float numbers as elements
	 * @return Arithmetical average of all elements in a vector
	 */
	public static float average( Vector<Float> vec ){
		
		float average = 0;
		
		for (Float fit : vec) {
			average += fit;
		}

		average = average/vec.size();
		
		return average;
		
	}
	
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Scanner s = new Scanner(System.in);
		float f1 = s.nextFloat();
		float f2 = s.nextFloat();
		float f3 = s.nextFloat();
		Vector <Float> v = new Vector<Float>();
		v.add(f1);
		v.add(f2);
		v.add(f3);
		
		System.out.println(v.get(0));
		System.out.println(f2);
		System.out.println(f3);
		
		System.out.println(average(v));
	}

}
